//
//  ShellRechargeViewController.m
//  ShellWallert
//
//  Created by lvzhao on 2019/9/27.
//  Copyright © 2019年 VV. All rights reserved.
//

#import "ShellRechargeViewController.h"
#import "ShellRechargeView.h"
#import "ShellRechargeViewModel.h"

@interface ShellRechargeViewController ()

@property (nonatomic,strong) ShellRechargeView *rechargeView;

@property (nonatomic,strong) ShellRechargeViewModel *viewModel;

@end

@implementation ShellRechargeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = LZLocalizedString(@"充币");
    
    [self setupUI];
}


- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.barTintColor = COLOR_BACKGROUND;
}



#pragma mark - setupUI
- (void)setupUI{
    [self.view addSubview:self.rechargeView];
    [self.rechargeView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
}

#pragma mark - actions

#pragma mark - custool

#pragma mark - get && set
- (ShellRechargeView *)rechargeView{
    
    if(!_rechargeView){
        _rechargeView = [[ShellRechargeView alloc] initViewModel:self.viewModel];
    }
    return _rechargeView;
}

- (ShellRechargeViewModel *)viewModel{
    if(!_viewModel){
        _viewModel = [[ShellRechargeViewModel alloc] init];
        _viewModel.wallertModel = self.wallertModel;
    }
    return _viewModel;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
